// 	Name: 01.c
//	Description: Chapter 5 project 1
//	Author: StableGenius
//	Date: 2020-05-07
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void)
{
	int num, digit = 1;
	
	printf("Enter a number: ");
	scanf("%d", &num);
	
	if (num / 999){
		digit = 4;
	} else if (num / 99){
		digit = 3;
	} else if (num / 9){
		digit = 2;
	}
	
	printf("The number %d has %d digit(s)\n", num, digit);

	return 0;
}
